﻿<%@ Page Language="C#" MasterPageFile="~/education.master" AutoEventWireup="true" CodeFile="eduManageCoursesInDepartment.aspx.cs" Inherits="EduMangeCoursesInDepartment" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="EduContent" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td align="center">
                </td>
        </tr>
        <tr>
            <td align="center">
                <asp:GridView ID="gvwDepartments" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="DepartmentID" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="DepartmentID" HeaderText="DepartmentID" 
                InsertVisible="False" ReadOnly="True" SortExpression="DepartmentID" 
                Visible="False" />
            <asp:BoundField DataField="Department" HeaderText="部门名称" 
                SortExpression="Department" >
                <ItemStyle Width="400px" />
            </asp:BoundField>
            <asp:HyperLinkField Text="&lt;img src='images/Edit.gif' border='0' /&gt;" 
                DataNavigateUrlFormatString="eduEditCoursesForDepartment.aspx?DepartmentID={0}" 
                DataNavigateUrlFields="DepartmentID" />
        </Columns>
        <EmptyDataTemplate>
            <b>当前没有部门信息</b>
        </EmptyDataTemplate>
    </asp:GridView>
            </td>
        </tr>
        <tr>
            <td>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:smsConnectionString %>" 
        SelectCommand="SELECT DepartmentID, Department FROM DepartmentInfo"></asp:SqlDataSource>
            </td>
        </tr>
    </table>
</asp:Content>

